import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'

//导入全局组件
// import page1 from './pages/index/page1/page1.vue'
// Vue.component('page1', page1)

//权限控制
import directive from "@/directive";
Vue.use(directive);

Vue.config.productionTip = false//阻止启动生产消息
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {createSSRApp} from 'vue'

export function createApp() {
    const app = createSSRApp(App)
    return {
        app
    }
}

// #endif